<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>STAFFER</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<style media="all" type="text/css">
@import "../css/all-lev1.css";
</style>

<script src='../js/ajax.js'></script>

<script language='javascript' type='text/javascript'>

function openSelectedUser(){
	var selector = document.getElementById('selector');
	var userValue= selector.options[selector.selectedIndex].value;
	page = '../control/c_staffing_schedules.php?viewUser='+userValue;
	//alert(page);
	AbreDoc('',page,'visor');
}

function add_schedule_user(user){
	page = '../control/c_staffing_schedules.php?add=go&user='+user;
	//alert(page);
	AbreDoc('',page,'visor');
}

function add_schedule_user_save(username){
	var weekdaySelect = document.getElementById('weekdaySelect');
	var shiftSelect = document.getElementById('shiftSelect');
	var qshiftSelect = document.getElementById('qshiftSelect');
	
	var weekdayValue= weekdaySelect.options[weekdaySelect.selectedIndex].value;
	var shiftValue= shiftSelect.options[shiftSelect.selectedIndex].value;
	var qshiftValue= qshiftSelect.options[qshiftSelect.selectedIndex].value;

	page = '../control/c_staffing_schedules.php?addsave=yes';
	page += '&user='+username;
	page += '&weekday='+weekdayValue;
	page += '&shift='+shiftValue;
	page += '&qshift='+qshiftValue;
	
	//alert(page);
	AbreDoc('',page,'visor');	
}


function edit_schedule_user(username, schedule){
	//alert("u= "+username+" schedule= "+schedule);
	page = '../control/c_staffing_schedules.php?edit='+username+'&schedule='+schedule;
	//alert(page);
	AbreDoc('',page,'visor');	
}

function edit_schedule_user_save(username,scheduleId,weekday){
	var shiftSelect = document.getElementById('shiftSelect');
	var qshiftSelect = document.getElementById('qshiftSelect');
	
	var scheduleValue= scheduleId;
	var weekdayValue= weekday;
	var shiftValue= shiftSelect.options[shiftSelect.selectedIndex].value;
	var qshiftValue= qshiftSelect.options[qshiftSelect.selectedIndex].value;

	page = '../control/c_staffing_schedules.php?editsave=true';
	page += '&user='+username;
	page += '&schedule='+scheduleValue;
	page += '&weekday='+weekdayValue;
	page += '&shift='+shiftValue;
	page += '&qshift='+qshiftValue;
	
	//alert(page);
	AbreDoc('',page,'visor');	
}

function delete_schedule_user(username, schedule){
	//alert("u= "+username+" schedule= "+schedule);
	page = '../control/c_staffing_schedules.php?delete='+username+'&schedule='+schedule;
	//alert(page);
	
	var ans=confirm("Are you sure you want to delete this record?");
	if (ans==true){	  
		AbreDoc('',page,'visor');	
	}	
}

</script>

</head>
<body>
<div id="main">
  <div id="header"> <a href="#" class="logo"><img src="../images/cisco.png" width="101" height="50" alt="" /></a>
    <ul id="top-navigation">
      <li><span><span><a href="../../qshift_change/control/c_q_shifts.php?view=list">Q-Shifts</a></span></span></li>
      <li><span><span><a href="../../shift_change/control/c_shifts.php?viewMyShift=yes">Shifts</a></span></span></li>
      <!--<li><span><span><a href="../callback/">Callbacks</a></span></span></li>-->
      <li class="active"><span><span><a href="../../management/">Management</a></span></span></li>
      <li><span><span><a href="../../activity_log/">Activity Log</a></span></span></li>
      <li><span><span><a href="../../login/control/c_logout.php">Logout</a></span></span></li>
    </ul>
  </div>
  
  <div id="middle">
    <div id="left-column">
      <h3>Go to:</h3>
      <ul class="nav">
        <li><a href="../control/c_staffing.php">Staffing</a></li>
        <li><a href="../control/c_shift-changes.php">Shift-Changes</a></li>
        <li class="last"><a href="../control/c_maintenance.php">Maintenance</a></li>
      </ul>
	  
    <div id="right-column"> <strong class="h">INFO</strong>
      <div class="box">Welcome to the Management Area!</div>
    </div>
	  <!-- **REMOVED** 
	  These can be added as links to other pages
      <a href="#" class="link">Link here</a> 
	  <a href="#" class="link">Link here</a>
	  -->
	  
	</div>
	
	
	  
	  
    <div id="center-column">

	<!-- HEADER SECTIONS ENDS HERE-->
	
	<!-- CONTENT SECTION STARTS HERE-->

